package com.miyake.client;

import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.FlowPanel;
import com.google.gwt.user.client.ui.HasHorizontalAlignment;
import com.google.gwt.user.client.ui.HorizontalPanel;
import com.google.gwt.user.client.ui.Hyperlink;
import com.google.gwt.user.client.ui.InlineHyperlink;
import com.google.gwt.user.client.ui.Label;
import com.google.gwt.user.client.ui.VerticalPanel;

public class Footer extends Composite {

	public Footer() {
		FlowPanel footerPanel = new FlowPanel();
		VerticalPanel verticalPanel = new VerticalPanel();
		verticalPanel.setWidth("100%");
		initWidget(verticalPanel);
		verticalPanel.add(footerPanel);
		verticalPanel.setCellHorizontalAlignment(footerPanel, HasHorizontalAlignment.ALIGN_CENTER);
		footerPanel.setWidth("100%");
		
		HorizontalPanel horizontalPanel_3 = new HorizontalPanel();
		horizontalPanel_3.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_CENTER);
		footerPanel.add(horizontalPanel_3);
		horizontalPanel_3.setWidth("");
		
		InlineHyperlink linkCompany = new InlineHyperlink("About us", false, "newHistoryToken");
		linkCompany.setDirectionEstimator(false);
		horizontalPanel_3 .add(linkCompany);
		linkCompany.setStylePrimaryName("textWithMargin");
		linkCompany.setWidth("");
		
		InlineHyperlink linkAdv = new InlineHyperlink("Advertisement Program", false, "newHistoryToken");
		horizontalPanel_3.add(linkAdv);
		linkAdv.setStylePrimaryName("textWithMargin");
		linkAdv.setHTML("Advertisement Programs");
		linkAdv.setWidth("");
		
		Hyperlink linkRecruit = new Hyperlink("New hyperlink", false, "newHistoryToken");
		horizontalPanel_3.add(linkRecruit);
		linkRecruit.setWidth("");
		linkRecruit.setHTML("Recruiting");
		
		HorizontalPanel horizontalPanel = new HorizontalPanel();
		footerPanel .add(horizontalPanel);
		
		Label lblNewLabel = new Label("\u00A9 2011 -");
		horizontalPanel.add(lblNewLabel);
		
		InlineHyperlink nlnhprlnkNewInlinehyperlink = new InlineHyperlink("Privacy", false, "newHistoryToken");
		horizontalPanel.add(nlnhprlnkNewInlinehyperlink);
	}

}
